package com.halflife.framework.excel;

import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;

public class ExcelSheet {
    private Workbook workbook;
    private Sheet sheet;
    private int index = 0;

    public ExcelSheet(Workbook workbook) {
        this.workbook = workbook;
        this.sheet = workbook.createSheet();
    }

    public ExcelRow createRow() {
        ExcelRow row = new ExcelRow(this.sheet, index++);
        return row;
    }

}
